@ECHO OFF
SETLOCAL EnableDelayedExpansion

SET bldFolder=build
SET relFolder=release

:: Clean release folder first
IF EXIST %relFolder% (RMDIR /S /Q release)

:: Copy GSMS files
XCOPY /I /E /V /Q /Y /EXCLUDE:Excluded.txt %bldFolder%\GSMS %relFolder%\GSMS
IF EXIST %bldFolder%\GSMS\lib\nul (XCOPY /I /V /Q /Y %bldFolder%\GSMS\lib %relFolder%\GSMS\lib)
XCOPY /I /V /Q /Y %bldFolder%\GSMS\*.dll %relFolder%\GSMS\lib

ENDLOCAL
EXIT /b